var t;
$(function(){ 
    t = setTimeout("timeOut()", 1000);
});
function timeOut(){
   var val = parseInt($(".loginOK_p1 span").first().text());    
   if(val<=0){
       window.clearTimeout(t);
       window.open(basic.addr,'_self');
       return;
   }
   val = val-1;
   $(".loginOK_p1 span").first().text(val);
   t = setTimeout("timeOut()", 1000);
}